import React from 'react'
import { withRouter } from 'react-router-dom'
import ROUTES from '@utils/routes'

import SourceData from '@utils/sourceData.js'
import CusDetail from '@components/CusDetail/index'
import './index.less'
const { news } = SourceData
class NewsDetail extends React.Component{
    constructor(props) {
        super(props)
    }
    componentWillMount() { 
        document.title = '新闻中心-详情'
    }

    render() {
        return (
            <div id="news-detail">
                <CusDetail
                    breadcrumb={['新闻中心', '详情']}
                    constList={news}
                    url={ROUTES.NEWS.DETAIL.URL}
                    backUrl={ROUTES.NEWS.INDEX.URL}
                />
            </div>
        )
    }
}
export default withRouter(NewsDetail)